<template>
  <div class="wrapper">
      <mm-slider :imageList="YXBanners" ></mm-slider>
  </div>
</template>
<script>
import MMSlider from "../components/MMSlider.vue";
export default {
  components: {
    "mm-slider": MMSlider
  },
  data() {
    return {
      YXBanners: []
    };
  },
  created() {
    this.GET("/api/banner/getBanners", res => {
        if(res.data){
            this.YXBanners = res.data.info;
        }      
    });
  }
};
</script>
